package com.sjtu.vfact.textual.model;

import java.util.List;

public class MasterTermset {
	
	private int id;
	private TermSet termset;
	private int support;
	private List<Pair<Integer, Integer>> pairList;
	
	public MasterTermset(int id, TermSet key){
		this.id = id;
		this.termset = key;
	}
	
	public MasterTermset(int id, TermSet key, int support, List<Pair<Integer, Integer>> pairs){
		this.id = id;
		this.termset = key;
		this.support = support;
		this.pairList = pairs;
	}
	
	public int getId(){
		return id;
	}
	
	public int getSupport(){
		return support;
	}
	
	public TermSet getTermset() {
		return termset;
	}
	public List<Pair<Integer, Integer>> getDocIds() {
		return pairList;
	}
	
	public void addDocIdsPair(Pair<Integer, Integer> docPair){
		pairList.add(docPair);
	}
	
	@Override
	public String toString(){
		return "Termset : " + termset + "\tPairList : " + pairList.toString();
	}
	
}
